package com.zhongcw.test.spring.pojo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品实体
 *
 * @author ZCW
 * @createTime 2018/3/28
 * @lastUpdateTime 2018/3/28 ZCW
 */
@Data
public class Commodity implements Serializable {

    private String id; //
    private Date createTime; //
    private Date lastUpdateTime; //
    private String commodityName; //
    private BigDecimal commodityPrice; //
    private String commodityCode; //
    private String shopCode; //

    public Commodity() {
//		this.setId(UUID.randomUUID().toString());
        this.setCreateTime(new Date());
    }

    public Commodity(String commodityName) {
	    this.commodityName=commodityName;
    }

}
